package com.example.observer.v5.listener.impl;

import com.example.observer.v5.event.Event;
import com.example.observer.v5.listener.SourceListener;

public class MomListener implements SourceListener {
    public void handle(){
        System.out.println("Mom handle");
    }

    @Override
    public void action(Event wakeUpEvent) {
        System.out.println("wakeUpEvent.getSource() = " + wakeUpEvent.getSource());
        handle();
    }
}
